﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MemberHiding
{
    class BaseClass
    {
        public void IslemYap()
        {
            Console.WriteLine("BaseClass process.");
        }
    }
    class Derived:BaseClass
    {
        public void IslemYap()
        {
            Console.WriteLine("Derived process.");
        }
    }
    class BaseClass2
    {
        public void IslemYap()
        {
            Console.WriteLine("BaseClass2 process.");
        }
    }
    class Derived2 : BaseClass2
    {
        private new void IslemYap()
        {
            Console.WriteLine("Derived2 process.");
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            Derived s = new Derived();
            s.IslemYap();
            /* OUTPUT
             Derived process.
             */

            Derived2 m = new Derived2();
            m.IslemYap(); // derleyici mecbur public olani sececek

        }
    }
}
